<form method="post" action="<?php echo base_url()."index.php/api/update"?>">
	<fieldset style="width: 50%">
		<legend>API Form</legend>
		<dl>
			<dt>Network ID:</dt>
			<dd><input style="min-width: 30%" type="text" name="api" <?php if($data)echo "value='".$data->name."'";?>/></dd>
		</dl>
		<dl>
			<dt>Api key:</dt>
			<dd><input style="min-width: 30%" type="text" name="key" <?php if($data)echo "value='".$data->api_key."'";?>/></dd>
		</dl>
		<!--<input type="hidden" name="id"/>-->
		<input type="submit" name="save" value="Save"/>
	</fieldset>
</form>